package com.it.dao;

import com.it.domain.MessageComment;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MessageCommentMapper {


    int saveComment(MessageComment messageComment);

    List<MessageComment> SelectAll();
    Integer DeleteComment(Integer id);

    Integer DeleteRootComment(Integer rootId);

    List<MessageComment> SelectByParentId(Integer id);

    MessageComment SelectById(Integer id);
}
